package com.htj.powerbank.mapper;

import com.htj.powerbank.entity.User;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface UserMapper{

    User selectUserByName(String name);

    int addUser(User user);

    User selectUserById(Integer id);

    List<User>  selectUserInfoListByPage(User user);

    int updateUserBy(User user);

    int unpdateStatusBy(Integer id, String status);
}
